﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Service
{
    public class OrleansServiceBuilderContext
    {
        /// <summary>
        /// Silo和Silo之间通信端口
        /// </summary>
        public int SiloPort { get; set; }

        /// <summary>
        /// Client链接Silo端口
        /// </summary>
        public int GatewayPort { get; set; }

        /// <summary>
        /// 使用使用控制面板
        /// </summary>
        public bool IsUseDashboard { get; set; }

        /// <summary>
        /// 控制面板上下文
        /// </summary>
        public Dashboard DashboardContext { get; set; }



        /// <summary>
        /// Zookeeper 服务端口
        /// </summary>
        public string ZookeeperConnectionString { get; set; }

        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string MSSQLConnectionString { get; set; }


        /// <summary>
        /// 集群ID
        /// </summary>
        public string ClusterId { get; set; }

        /// <summary>
        /// 当前服务ID，应该唯一
        /// </summary>
        public string ServiceId { get; set; }
    }

    public class Dashboard
    {
        /// <summary>
        /// 控制面板端口号
        /// </summary>
        public int Port { get; set; }

        public string Username { get; set; }
        public string Password { get; set; }

    }

}
